package com.lumlord.mapper.auto;

import java.io.Serializable;
import com.lumlord.common.annotation.pojo.PK;
import com.lumlord.common.annotation.pojo.Table;
import com.lumlord.common.base.BaseEntity;
import com.lumlord.common.annotation.mybatis.SqlInjection;
import com.lumlord.common.annotation.mybatis.SqlInjectionColumn;
import com.lumlord.common.annotation.mybatis.SqlInjectionType;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.lang.Integer;

/**
 * 自动代码生成 AutoCode
 * 
 * @author gpf_自动生成
 * @email 372138617@qq.com
 * @date 2019-09-19 17:40:04
 */
@Table("t_auto_code")
public class AutoCode extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/** 主键 **/
	@PK("id")
	private Integer id;

	/** 名称 **/
	private String name;

	/** 添加时间 **/
	@SqlInjection(types = SqlInjectionType.INSERT, column = SqlInjectionColumn.DATE)
	private Date addTime;

	/** 修改时间 **/
	@SqlInjection(types = SqlInjectionType.UPDATE, column = SqlInjectionColumn.DATE)
	private Date updateTime;

	/** 添加用户 **/
	@SqlInjection(types = { SqlInjectionType.INSERT, SqlInjectionType.QUERY }, column = SqlInjectionColumn.USER)
	private Integer addUser;

	/** 项目ID **/
	@SqlInjection(types = { SqlInjectionType.INSERT, SqlInjectionType.DEL, SqlInjectionType.QUERY,
			SqlInjectionType.UPDATE }, column = SqlInjectionColumn.PROJECT)
	private Integer projectId;

	/** 逻辑删除 0 表示不删除 ，1表示删除 **/
	@SqlInjection(types = { SqlInjectionType.INSERT, SqlInjectionType.DEL, SqlInjectionType.QUERY,
			SqlInjectionType.UPDATE }, defval = "0")
	private Integer state;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getAddUser() {
		return addUser;
	}

	public void setAddUser(Integer addUser) {
		this.addUser = addUser;
	}

	public Integer getProjectId() {
		return projectId;
	}

	public void setProjectId(Integer projectId) {
		this.projectId = projectId;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public AutoCode() {
		super();
	}

	public AutoCode(Integer id, String name, Date addTime, Date updateTime, Integer addUser, Integer projectId,
			Integer state) {

		this.id = id;
		this.name = name;
		this.addTime = addTime;
		this.updateTime = updateTime;
		this.addUser = addUser;
		this.projectId = projectId;
		this.state = state;

	}

}